package com.ymx.darling.type;

import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;

public class StringHandler implements TypeHandler<String> {
    @Override
    public String getResult(ResultSet resultSet, int columIndex) throws SQLException{
        return resultSet.getString(columIndex);
    }

    @Override
    public void setParameter(PreparedStatement statement, String value, int index) throws SQLException {
        statement.setString(index, value);
    }
}
